from pyecharts import Line


class SystemChart:
    def __init__(self, data):
        self.data = data

    def render(self):
        print(self.data)

        header = self.data.columns.values.tolist()
        index = self.data.index.values.tolist()

        line = Line('DVR Dual Camera Test')

        for i in range(0, len(header)):
            line.add(header[i], index, self.data[header[i]].tolist(), is_smooth=True)

        line.render()
